package com.github.boluo1230.wechat.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@Document(collection = "wx_user_")
public class WxUser {
    private Byte subscribe;
    @Id
    @JsonProperty("openid")
    private String openId;
    private String nickname;
    private String sex;
    private String language;
    private String province;
    private String city;
    private String country;
    @JsonProperty("headimgurl")
    private String headImgUrl;
    private List<String> privilege;
    @JsonProperty("subscribe_time")
    private long subscribeTime;
    @JsonProperty("unionid")
    private String unionId;
    private String remark;
    @JsonProperty("groupid")
    private int groupId;
    @JsonProperty("tagid_list")
    private List<Integer> tagIdList;
}
